﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PoolSide
{
    public partial class frmPoolInfo : Form
    {
        public frmPoolInfo()
        {
            InitializeComponent();
        }

        private void frmPoolInfo_Load(object sender, EventArgs e)
        {
            lblStartedAt.Text = Program.CurrentRoundStarted.ToLocalTime().ToString("ddd MM/dd/yyyy HH:mm:ss tt");
            lblDuration.Text = Program.RoundDuration;
            lblSharesCDF.Text = Program.CurrentSharesCDF;
            lblSharesContrib.Text = Program.CurrentRoundShares;
            lblTotalScore.Text = Program.CurrentRoundScore;

            lblLuck1.Text = string.Concat(Program.Luck1.Replace(".", ""), " %");
            lblLuck7.Text = string.Concat(Program.Luck7.Replace(".", ""), " %");
            lblLuck30.Text = string.Concat(Program.Luck30.Replace(".", ""), " %");

            lblPoolPerformance.Text = string.Concat(Program.PoolPerformance, " GHash/sec");
        }

        private void cmdClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
